import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_res_tags_rel' })
export default class SysResTagsRel extends BaseEntity {
  @PrimaryGeneratedColumn()
  @ApiProperty()
  id: number;

  @ApiProperty()
  @Column()
  rid: number;

  @ApiProperty()
  @Column()
  cid: number;

  @ApiProperty()
  @Column()
  tid: number;

  @ApiProperty()
  @Column()
  visibilitylevel: number;
}
